package com.allwees.bs.module.pms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.allwees.bs.module.pms.dto.ProductDto;
import com.allwees.bs.module.pms.req.AdjustRetailPriceReq;
import com.allwees.bs.module.pms.req.ProductInfoReq;
import com.allwees.bs.module.pms.req.query.OrderProductQueryReq;
import com.allwees.bs.module.pms.req.query.ProductQueryReq;

import javax.servlet.http.HttpServletResponse;

/**
 * 零售商Product操作接口
 *
 * @author yangylsky
 * @since 2019-08-21
 */
public interface RetailerProductService extends MerchantProductService {
    /**
     * 发生了购买行为的Product分页查询
     *
     * @param page
     * @param req
     * @return
     */
    IPage happenOrderPage(Page page, ProductQueryReq req);

    ProductDto happenOrder(String productUuid);

    void exportHappenOrder(HttpServletResponse response, OrderProductQueryReq req);

    void exportHappenedOrderSkus(HttpServletResponse response, OrderProductQueryReq req);

    void updateCustomNos(String productUuid, ProductInfoReq req);

    boolean adjustRetailPrice(AdjustRetailPriceReq req);
}
